package com.njtoyo.taxi.admin.rest.wrapper.business.customer;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
@ApiModel(value = "修改手机号码")
public class UpdateMobileNumberWrapper {

    @ApiModelProperty("手机号码")
    @NotBlank(message = "手机号码不能为空")
    @Pattern(regexp = "^1\\d{10}$", message = "手机号码格式不准确")
       private String mobileNumber;
}
